<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:body>
        <composite:interface></composite:interface>
        <composite:implementation>
            <p:dataTable var="a" value="#{AnotacaoController.anotacoes}" paginator="true" rows="10">
                <p:column>
                    <f:facet name="header">
                        <h:outputText value="Data" />
                    </f:facet>
                    <h:outputText value="#{a.data}">
                        <f:convertDateTime pattern="dd/MM/yyyy"/>
                    </h:outputText>
                </p:column>

                <p:column>
                    <f:facet name="header">
                        <h:outputText value="Caráter" />
                    </f:facet>
                    <h:outputText value="#{a.carater}" />
                </p:column>

                <p:column>
                    <f:facet name="header">
                        <h:outputText value="texto" />
                    </f:facet>
                    <h:outputText value="#{a.texto}" />
                </p:column>

                 <p:column style="width:32px">
                    <p:commandButton update="display" oncomplete="carDialog.show()"
                            image="ui-icon ui-icon-search">
                        <f:setPropertyActionListener value="#{a}"
                                                     target="#{AnotacaoController.anotacao}" />
                    </p:commandButton>
                </p:column>

            </p:dataTable>
        </composite:implementation>
    </h:body>
</html>

